package com.gitee.tanmingjian.httptunnel.core.util;

import java.util.Optional;

public class BannerUtil {

    private static final String BANNER_TEXT =
            "    __  __________________      ______                       __\n" +
            "   / / / /_  __/_  __/ __ \\    /_  __/_  ______  ____  ___  / /\n" +
            "  / /_/ / / /   / / / /_/ /_____/ / / / / / __ \\/ __ \\/ _ \\/ / \n" +
            " / __  / / /   / / / ____/_____/ / / /_/ / / / / / / /  __/ /  \n" +
            "/_/ /_/ /_/   /_/ /_/         /_/  \\__,_/_/ /_/_/ /_/\\___/_/   \n" +
            "                                                  ";

    public static void printBanner() {
        System.out.println(BANNER_TEXT + Optional.ofNullable(VersionUtils.getVersion()).orElse("unknown"));
    }
}
